# 项目:
# 文件: demo4
# 作者: Yang
# 日期: 2025/5/23 11:59
# coding:utf-8
from pytestdemo.tools import UIAction

if __name__ == '__main__':
    #方式一：
    # module_name = input("请输入模块名称")
    # module_obj1 = __import__(module_name)
    # print(module_obj1.randint(0,10))
    # from pytestdemo import tools        #导入模块
    # tools.Util.query()
    #方式二：
    module_obj2 = __import__('pytestdemo.tools',fromlist=['tools'])
    # module_obj2.UIAction.get_driver()
    import inspect  #监视器
    class_name = inspect.getmembers(module_obj2,inspect.isclass)
    print(class_name)